package cn.exrick.xboot.securityAdvisor.controllerImpl

import cn.exrick.xboot.base.service.ISafetyAcceptorService
import cn.exrick.xboot.core.common.vo.PageVo
import cn.exrick.xboot.core.common.vo.Result
import cn.exrick.xboot.securityAdvisor.controller.ISecurityAdvisorController
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.web.bind.annotation.RestController

@RestController
open class SafetyAcceptorController : ISecurityAdvisorController.ISafetyAcceptor {


    @Autowired
    private lateinit var iSafetyAcceptorService: ISafetyAcceptorService

    override fun createSafetyAcceptor(securityAdvisorIds: Array<out String>): Result<Any?>? {

        return iSafetyAcceptorService.createSafetyAcceptor(securityAdvisorIds)
    }

    override fun removeSafetyAcceptor(ids: Array<out String>?): Result<Any?>? {

        return iSafetyAcceptorService.removeSafetyAcceptor(ids)
    }

    override fun enterpriseGetSafetySecurityAdvisorList(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iSafetyAcceptorService.enterpriseGetSafetySecurityAdvisorList(pageVo)
    }

    override fun safetySecurityAdvisorGetEnterprise(pageVo: PageVo): Result<MutableMap<String, Any?>>? {

        return iSafetyAcceptorService.safetySecurityAdvisorGetEnterprise(pageVo)
    }

}